package com.ykq.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: qy165-ssm
 * @description:
 * @author: 闫克起2
 * @create: 2023-04-27 11:44
 **/
@Data
public class Emp {
    private Integer id;
    private String name;
    private BigDecimal salary;//小数类型 不要使用double或float 因为它有精度丢失问题3.0  3.000000000001
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;
    private Integer deptId;
    private String headImg="https://qy165.oss-cn-qingdao.aliyuncs.com/1.jpg";

    private Dept dept;//一对一
}
